package com.lingjtx.gencode;

public class Column {
    private String name;
    private String type;
    private String field;
    private String comment;
    private boolean isPrimary;

    public Column(String name, String type, String field, String comment, boolean isPrimary) {
        this.name = name;
        this.type = type;
        this.field = field;
        this.comment = comment;
        this.isPrimary = isPrimary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }
}
